<template>
  <div class="test">
    <ComMain
      :commentDate="comment"
      v-for="(comment, index) in commentList"
      :key="index"
    />
  </div>
</template>

<script>
import ComMain from "../components/Comment/Main";
export default {
  components: {
    ComMain,
  },
  data() {
    return {
      commentList: [],
    };
  },
  created() {
    this.$axios({
      url: "/post_comment/3",
    }).then((res) => {
      console.log(res.data.data);
      this.commentList = res.data.data;
    });
  },
};
</script>

<style>
</style>